package com.informa.utils;

import java.util.Date;

import org.apache.commons.lang.time.DateUtils;

import com.ibm.icu.util.Calendar;

public class TimeUtils {
	
	public static Date newDate(int year, int month, int date){
		Calendar cal = Calendar.getInstance();
		cal.set(year, month, date);
		return DateUtils.truncate(cal.getTime(), Calendar.DATE);
	}
	
	public static final Date TODAY() {
		return new Date();
	}
	
	public static final Date NOW() {
		return new Date();
	}
	
	public static final boolean isInFuture(Date date) {
		return date.after(NOW());
	}
}
